I am using EWS (direct XML, not the managed API) to create a recurring calendar event in Office 365. And at the same time, trying to enter in breakout events such as deleted or modified instances of the pattern. I've got the basic recurrence working but the breakouts don't seem to work. I am starting off just with deleted dates, for example:
<t:CalendarItem> <t:Subject>Normal daily test</t:Subject> <t:Importance>Low</t:Importance> <t:ReminderMinutesBeforeStart>5</t:ReminderMinutesBeforeStart> <t:ExtendedProperty> <t:ExtendedFieldURI PropertyTag="0x3004" PropertyType="String"/> <t:Value>via TM</t:Value> </t:ExtendedProperty> <t:Start>2015-06-22T22:30:00Z</t:Start> <t:End>2015-06-22T23:30:00Z</t:End> <t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus> <t:Location></t:Location> <t:Recurrence> <t:DailyRecurrence> <t:Interval>1</t:Interval> </t:DailyRecurrence> <t:NumberedRecurrence> <t:StartDate>2015-06-22Z</t:StartDate> <t:NumberOfOccurrences>7</t:NumberOfOccurrences> </t:NumberedRecurrence> </t:Recurrence> <t:DeletedOccurrences> <t:DeletedOccurrence> <t:Start>2015-06-23T22:30:00Z</t:Start> </t:DeletedOccurrence> </t:DeletedOccurrences> <t:StartTimeZone Id="Pacific Standard Time"></t:StartTimeZone> </t:CalendarItem>The result is the error "Set action is invalid for property". It is definitely the <DeletedOccurrences> block causing the problem; if I take that out, it works fine. Any ideas?